<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <main id="app">
        <p>姓名:{{name}}</p>
        <p>年龄:{{age}}</p>
    </main>
</body>
<script src="../vue.min.js"></script>
<script src="../axios-0.27.2.min.js"></script>
<script>


    new Vue({
        data() {
            return {
                name: "",
                age: "",
            }
        },
        created() {
            axios({
                url: "http://127.0.0.1:8888/",
                method: "GET"
            }).then(res => {
                console.log(res);
            })
        }
    })
</script>
</html>